package com.example.demo.entity;

import com.example.demo.util.QueryRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 账号表(Account)实体类
 *
 * @author makejava
 * @since 2020-12-09 00:35:34
 */
@Data
@Table(name = "t_account")
@ApiModel("账号表")
public class Account extends QueryRequest implements Serializable {

    private static final long serialVersionUID = 929608402858467096L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 账号
     */
    @ApiModelProperty("账号")
    private String account;

    /**
     * 密码
     */
    @ApiModelProperty("密码")
    private String password;

    /**
     * 时间
     */
    @ApiModelProperty("时间")
    private Date createTime;

    /**
     * status 1 success 2 fail 初始化：0
     */
    @ApiModelProperty("status 1 success 2 fail 初始化：0")
    private Integer status;

    /**
     * flag
     */
    @ApiModelProperty("flag")
    private Integer flag;

}